package com.fastjrun.codeg.bundle.common;

public class RestField {

	private String name;

	private String nameAlias;

	private String length;

	private String remark;

	private boolean canBeNull;

	/**
	 * 字段数据类型 String:List
	 */
	private String datatype;

	/* pathVariable需要用到顺序 */
	private int index;

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean isCanBeNull() {
		return canBeNull;
	}

	public void setCanBeNull(boolean canBeNull) {
		this.canBeNull = canBeNull;
	}

	public String getDatatype() {
		return datatype;
	}

	public void setDatatype(String datatype) {
		this.datatype = datatype;
	}

	public String getNameAlias() {
		return nameAlias;
	}

	public void setNameAlias(String nameAlias) {
		this.nameAlias = nameAlias;
	}

	@Override
	public String toString() {
		return "RestField [name=" + name + ", nameAlias=\" + nameAlias + \", length=" + length + ", remark=" + remark + ", canBeNull=" + canBeNull
				+ ", datatype=" + datatype + "]";
	}
}
